﻿using System;
using System.Windows.Forms;

namespace NoteHelper
{
    public partial class MainForm : Form
    {
        private log4net.ILog logger;
        private NavigateForm navigateForm;

        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            logger = log4net.LogManager.GetLogger("NoteHelper.MainForm");
            navigateForm = new NavigateForm();            
            navigateForm.Show(dockPanel);
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void 打开ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            navigateForm.Show(dockPanel);
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var aboutForm = new AbountForm();
            aboutForm.ShowDialog();
            aboutForm.Dispose();
        }
    }
}
